﻿using Microsoft.Extensions.DependencyInjection;

using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;

namespace Holla.Infrastructure.AutoMapper.AspNet
{
   public static class AutoMapperAspNetExtension
    {
        public static IServiceCollection ConfigureAutoMapper(this IServiceCollection services, Assembly applicationAssembly)
        {
            services.AddAutoMapper(new Assembly[] { applicationAssembly });

            return services;
        }
    }
}
